]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Initialize the adjustment's upper bound
authorRui Matos <tiagomatos@gmail.com>
Sun, 26 Jun 2016 17:09:41 +0000 (19:09 +0200)
committerRui Matos <tiagomatos@gmail.com>
Mon, 27 Jun 2016 12:43:17 +0000 (14:43 +0200)
Initializing the upper bound to zero means that on panning we'd start
scrolling from the first workspace even if the current workspace when
entering the overview was different since StAdjustment clamps the
value to be inside bounds.

https://bugzilla.gnome.org/show_bug.cgi?id=766883

js/ui/workspacesView.js

index e0c9249c7e9c2075a43748aa227db13886008865..6c66f3e6167aa7a17dc0c91e0d3dd38d1ba2e966 100644 (file)
@@ -103,7 +103,7 @@ const WorkspacesView = new Lang.Class({
                                                     page_increment: 1,
                                                     page_size: 1,
                                                     step_increment: 0,
-                                                    upper: 0 });
+                                                    upper: global.screen.n_workspaces });
         this.scrollAdjustment.connect('notify::value',
                                       Lang.bind(this, this._onScroll));